package com.grj.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 充电费用结算表
 * @TableName ev_charging_fee
 */
@TableName(value ="ev_charging_fee")
@Data
public class EvChargingFee implements Serializable {
    /**
     * 费用ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 充电记录ID
     */
    @TableField(value = "charging_id")
    private Long chargingId;

    /**
     * 充电单号
     */
    @TableField(value = "record_no")
    private String recordNo;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 电费（元）
     */
    @TableField(value = "energy_fee")
    private BigDecimal energyFee;

    /**
     * 服务费（元）
     */
    @TableField(value = "service_fee")
    private BigDecimal serviceFee;

    /**
     * 停车费（元）
     */
    @TableField(value = "parking_fee")
    private BigDecimal parkingFee;

    /**
     * 总费用（元）
     */
    @TableField(value = "total_fee")
    private BigDecimal totalFee;

    /**
     * 计费策略ID
     */
    @TableField(value = "price_strategy_id")
    private Long priceStrategyId;

    /**
     * 计费开始时间
     */
    @TableField(value = "start_price_time")
    private Date startPriceTime;

    /**
     * 计费结束时间
     */
    @TableField(value = "end_price_time")
    private Date endPriceTime;

    /**
     * 状态：UNPAID-未支付，PAID-已支付，REFUNDED-已退款
     */
    @TableField(value = "status")
    private String status;

    /**
     * 支付时间
     */
    @TableField(value = "pay_time")
    private Date payTime;

    /**
     * 支付方式：WECHAT-微信，ALIPAY-支付宝，BALANCE-余额
     */
    @TableField(value = "pay_type")
    private String payType;

    /**
     * 支付单号
     */
    @TableField(value = "pay_no")
    private String payNo;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}